#ifndef RESOURCE_H
#define RESOURCE_H
#include "../../tools/headers/common.h"


#define N_OF_RES_TYPES 3

#define RES_TIME 0
#define RES_PROC_EXIT 1
#define RES_QUEUE 2


typedef BOOL(*resource_check_t)(u32int);

struct resource_struct
{
	u32int id;
	u32int param;
}
typedef struct resource_struct resource_type;

BOOL resource_is_available(resource_type* res);
void block_process(task_* task, u32int res_id, u32int param);
void initialise_resource_management();
#endif